<template>
  <div class="content">
    <div v-if="dataList.length>0">
      <div class="t-show" v-for="item in dataList" :key="item.id">
        <div class="ts-left">
          <img :src="item.img" alt>
        </div>
        <div class="ts-right">
          <h5>{{item.name}}</h5>
          <div class="choose">
            <p>
              轻盈便捷
              <span>XXXX</span>
            </p>
          </div>
          <p>
            ￥{{item.sell_price}}
            <span class="omoney">￥{{item.market_price}}</span>
          </p>
          <div class="shixiao"></div>
        </div>
      </div>
    </div>
    <div v-else>数据为空</div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: {
    dataList: []
  }
};
</script>
<style scoped>
.content {
  width: 100%;
  background: #fff;
  margin-top: 0.2rem;
}
.t-show {
  width: 92%;
  height: 3rem;
  padding-top: 0.3rem;
  box-sizing: border-box;
  margin: 0 auto;
  border-bottom: 0.01rem solid #eff1f3;
}
.ts-left {
  width: 2.3rem;
  height: 2.3rem;
  float: left;
  overflow: hidden;
  border-radius: 0.1rem;
  border: 0.01rem solid #eaeaea;
}
.ts-left img {
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0.05rem;
  margin-left: 0.05rem;
}
.ts-right {
  width: 4.2rem;
  float: left;
  position: relative;
  margin-left: 0.3rem;
}
.ts-right h5 {
  font-size: 0.3rem;
  color: #191e2a;
  font-weight: bold;
  line-height: 0.4rem;
}
.ts-right .choose {
  width: 2.6rem;
  height: 0.3rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  border-radius: 0.06rem;
  position: relative;
}
.ts-right .choose p {
  font-size: 0.26rem;
  color: #b3b5b8;
  display: inline-block;
}
.ts-right p {
  font-size: 0.26rem;
  color: #f52e67;
  font-size: medium;
  font-weight: bold;
}
.ts-right p .omoney {
  display: inline-block;
  font-weight: 200;
  color: #b3b5b8;
  margin-left: 0.4rem;
  text-decoration: line-through;
}
.ts-right .shixiao {
  position: absolute;
  right: 0;
  bottom: 0.04rem;
  font-size: 0.28rem;
  color: #b3b5b8;
}
</style>
